import { h } from "vue";
import {
  BarChartOutlined,
  HomeOutlined,
  BarsOutlined,
  PrinterOutlined,
  LaptopOutlined,
  AppstoreOutlined,
  ContainerOutlined,
  FileSearchOutlined,
  ProfileOutlined,
  CreditCardOutlined,
} from "@ant-design/icons-vue";
export const navMenu = [
  {
    key: "Home",
    icon: () => h(HomeOutlined),
    label: "首页",
    title: "首页",
  },
  {
    key: "Menu-Product",
    icon: () => h(AppstoreOutlined),
    label: "商品管理",
    title: "商品管理",
    children: [
      {
        key: "Product-Pool",
        icon: () => h(BarsOutlined),
        label: "商品池",
        title: "商品池",
        parent: "Menu-Product",
        desc: "快速将商品上架至店铺中",
      },
      {
        key: "Product-Record",
        label: "上架记录",
        title: "上架记录",
        icon: () => h(FileSearchOutlined),
        parent: "Menu-Product",
      },
      {
        key: "Product-Template",
        label: "商品模板",
        title: "商品模板",
        parent: "Menu-Product",
        icon: () => h(ContainerOutlined),
        desc: "设置商品复制模板，帮助您更快上架商品",
      },
    ],
  },
  {
    key: "Menu-Order",
    icon: () => h(PrinterOutlined),
    label: "订单管理",
    title: "订单管理",
    children: [
      {
        key: "Order-List",
        label: "订单列表",
        title: "订单列表",
        icon: () => h(BarsOutlined),
        parent: "Menu-Order",
      },
      {
        key: "Order-Error",
        label: "异常单",
        title: "异常单",
        icon: () => h(BarsOutlined),
        parent: "Menu-Order",
      },
    ],
  },
  {
    key: "Menu-Shop",
    icon: () => h(LaptopOutlined),
    label: "店铺管理",
    title: "店铺管理",
    isHide: true,
    children: [
      {
        key: "Shop-Info",
        label: "店铺信息",
        title: "店铺信息",
        icon: () => h(ProfileOutlined),
        parent: "Menu-Shop",
      },
    ],
  },
  {
    key: "Menu-Money",
    icon: () => h(BarChartOutlined),
    label: "资金明细",
    title: "资金明细",
    children: [
      {
        key: "Money-Info",
        label: "资金管理",
        title: "资金管理",
        icon: () => h(CreditCardOutlined),
        parent: "Menu-Money",
      },
    ],
  },
  {
    key: "Menu-User",
    icon: () => h(BarChartOutlined),
    label: "账户管理",
    title: "账户管理",
    isHide: true,
    children: [
      {
        key: "User-Manage",
        label: "账户管理",
        title: "账户管理",
        icon: () => h(CreditCardOutlined),
        parent: "Menu-User",
      },
    ],
  },
];
